/**
 * Alibaba.com.cn Inc.
 * Copyright (c) 2004-2021 All Rights Reserved.
 */
package com.smart.utils;

/**
 * @author zhanghong
 * @version BooleanUtil.java, v 0.1 2023/10/16 17:20 下午 BooleanUtil Exp $$
 */
public class BooleanUtil {

    public static boolean isTrue(Boolean bool) {
        if (bool == null) {
            return false;
        }
        return Boolean.TRUE.equals(bool);
    }

    public static boolean isFalse(Boolean bool) {
        if (bool == null) {
            return true;
        }
        return Boolean.FALSE.equals(bool);
    }
}
